package com.bwie.client.user;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.bwie.client.user.impl.UserFeignClientImpl;
import com.bwie.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author: Mikey
 * @Date: 2025/9/9 09:31
 * @Description:
 **/
@FeignClient(value = "server-store-user",fallback = UserFeignClientImpl.class)
public interface UserFeignClient {

    /***
     * @author: 秋晚
     * @description:根据手机号查询用户
     * @params: [java.lang.String]
     * @return: com.bwie.utils.R
     * @date: 2025/9/9 9:30
     */
    @GetMapping("user/index/getUserByphone/{phone}")
    User getUserByPhone(@PathVariable(name = "phone")String phone);

    /***
     * @author: 秋晚
     * @description:根据id获取用户信息
     * @params: [java.lang.Integer]
     * @return: com.bwie.pojo.User
     * @date: 2025/9/9 11:55
     */
    @GetMapping("user/index/getUserById/{id}")
    User getUserById(@PathVariable(name = "id")Integer id);
}
